diff -Naur temp1/gftp-2.0.19-patched_2ubuntu1_expandedpathsigsegv/configure.in gftp-2.0.19-patched_2ubuntu1_expandedpathsigsegv/configure.in
--- temp1/gftp-2.0.19-patched_2ubuntu1_expandedpathsigsegv/configure.in	2008-11-29 22:18:14.000000000 +0800
+++ gftp-2.0.19-patched_2ubuntu1_expandedpathsigsegv/configure.in	2017-05-09 09:10:55.993559646 +0800
@@ -37,10 +37,8 @@
 AC_PROG_RANLIB
 AC_SYS_LARGEFILE
 dnl AC_ISC_POSIX
-AM_C_PROTOTYPES
 AC_C_CONST
 AC_C_INLINE
-AC_INTL_PRINTF
 
 AM_MAINTAINER_MODE
 
@@ -85,10 +83,6 @@
   found_glib20=0;
 fi
 
-if test "x$GFTP_TEXT" = "x" -a $found_glib20 = 0 ; then
-  AM_PATH_GLIB(1.2.3, , AC_MSG_ERROR(gFTP needs GLIB 1.2.3 or higher))
-fi
-
 EXTRA_LIBS=""
 
 # FreeBSD needs this
@@ -201,12 +195,7 @@
     PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.0.0, GFTP_GTK=gftp-gtk, AC_MSG_ERROR(You have GLIB 2.0 installed but I cannot find GTK+ 2.0. Run configure with --disable-gtk20 or install GTK+ 2.0))
   fi
 
-  if test "x$GFTP_GTK" = "x" ; then
-    AM_PATH_GTK(1.2.3, GFTP_GTK=gftp-gtk, AC_MSG_WARN(gFTP needs GTK+ 1.2.3 or higher for the graphical version. Only building the text version))
-    GTHREAD_LIBS="-lgthread"
-  else
-    GTHREAD_LIBS="-lgthread-2.0"
-  fi
+  GTHREAD_LIBS="-lgthread-2.0"
 
   if test "x$GFTP_GTK" = xgftp-gtk; then
     case $host in
